feat(python-sdk): Add riskified as supported external fraud tool; removes unused endpoints. #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR has been automatically generated. Please review it and merge it if everything is fine.
Caution
This is a BREAKING CHANGE.
As a result, the SDK removes support for several deprecated endpoints and related resources. Code using these endpoints will need to be updated.
This change adds support for the
riskifiedexternal fraud tool and removes unused endpoints:1. Add
riskifiedattribute to InvoiceExternalFraudToolsThis change adds support for the
riskifiedexternal fraud tool attribute in theInvoiceExternalFraudToolsclass, following the same pattern as existing fraud tool attributes (forter,ravelin,signifyd).The implementation includes:
_riskifiedattribute in__init__riskifiedriskifiedinfill_with_data()methodriskifiedinto_json()serialization2. Remove non-existent endpoints and related resources
The following endpoints and their associated resources have been removed as they are no longer supported by the API:
/activities-Activityclass andnew_activity()method/coupons-Couponclass andnew_coupon()method/customers/:id/subscriptions-Customer.fetch_subscriptions()method andsubscriptionsattribute/discounts-Discountclass/plans-Planclass andnew_plan()method/subscriptions-Subscriptionclass,new_subscription()method, and related subscription attributes fromTransactionandCustomer/addons-Addonclass andnew_addon()methodProjectclassFiles removed:
processout/activity.pyprocessout/addon.pyprocessout/coupon.pyprocessout/discount.pyprocessout/plan.pyprocessout/subscription.pyFiles modified:
processout/client.py- Removed factory methods for deleted resourcesprocessout/customer.py- Removedsubscriptionsattribute andfetch_subscriptions()methodprocessout/transaction.py- Removedsubscriptionandsubscription_idattributesprocessout/__init__.py- Removed imports for deleted classesprocessout/project.py- Removed supervised projects endpoints3. Additional changes
This release also includes various other updates:
preferred_card_typetoCardCreateRequestandCardUpdateRequestvault_idtoCustomerandTokenthreeds_sdkandplatformtoDeviceorigintoTransactioncapture_typetoTransactionOperationsplit_paymentstoUnsupportedFeatureBypass9.0.0BREAKING CHANGE: Removal of
subscriptions,activity,addon,coupon,discount,plan, in customer, transaction and , projects endpoints.